<?php
require_once("PastRecord.class.php");
require_once("Constant888.class.php");
require_once("helpFunctions.php");
class TestPastRecordMB extends PHPUnit_Framework_TestCase {
	protected $recordMB;
	public function setUp() {
		$this -> recordMB = new PastRecord();
	}
	
	public function testConstructor() {
		$Constant888 = Constant888::instance();		
		$this -> assertEquals( $this -> recordMB -> getAreaCode(),$Constant888 -> value("MB_AREA_CODE"));	
	} 
	
	public function testFileList() {
		$Constant888 = Constant888::instance();
		$expectedArr = array(
			0 => "Luu_KQ_MB0.xml",
			1 => "Luu_KQ_MB1.xml",
			2 => "Luu_KQ_MB2.xml",
			3 => "Luu_KQ_MB3.xml",
			4 => "Luu_KQ_MB4.xml",
			5 => "Luu_KQ_MB5.xml",
			6 => "Luu_KQ_MB6.xml"
		);
		$this -> assertTrue(HelpFunctions::equalsArray($expectedArr,$this->recordMB->fileList()));
		
	}
}
?>